package top.v5it.japi.plus.support.limit;

import lombok.Getter;

/**
 * 自定义频率超限异常
 *
 * @author zhanpu
 * @date 2021/2/24
 */
public class FrequencyLimitedException extends RuntimeException {

    private static final long serialVersionUID = 3561689610505621948L;

    @Getter
    private final int status = 429;
    @Getter
    private final String returnCode = "RATELIMIT_EXCEEDED";

    public FrequencyLimitedException() {
        super("请求超过频率限制");
    }
}
